/**
 @Name：layuiAdmin 开标项目列表
 @Author：star1029 
 @License：LPPL    
 */
function skip(code){
  var url= "../views/app/projectdetailfile/projectdetailfilelist.html";
	//reading('../deptdimension/detailtable?dept='+code+'&startTime='+$('#startTime').val());
  window.parent.layui.index.openTabsPage(url,"项目标段信息列表")
}

layui.define(['table', 'form'], function(exports){
  var $ = layui.$
  ,table = layui.table
  ,form = layui.form
  ,upload = layui.upload;
  //帖子管理
  table.render({
    elem: '#LAY-app-projectdetailfile-list'
    ,url: layui.setter.base + 'json/projectdetailfile/list.js' //模拟接口
    ,cols: [[
      {type: 'checkbox', fixed: 'left'}
      ,{field: 'BidPdfname', title: '投标文件名称', sort: true,
      templet: '<div><a class="iconfont icon-chakanbaogao" style="margin-left: 3%; color: #2196F3;border-radius: 5px; cursor: pointer;text-decoration: underline;" target="_blank" onclick="skip({{d.id}})">{{d.BidPdfname}}</a></div>'      
    }
    ,{title: '附件下载', align: 'center', fixed: 'right', toolbar: '#table-projectdetailfile-list'}
    ]]
    ,page: true
    ,limit: 10
    ,limits: [10, 15, 20, 25, 30]
    ,text: '对不起，加载出现异常！'
  });
  
  //监听工具条
  table.on('tool(LAY-app-projectdetailfile-list)', function(obj){
    var data = obj.data;    
    if(obj.event=="download")
    {
      window.open("../../layuiadmin/projectfile/施工安全风险防范说明书_设计文件审查单(20210514090859).pdf")

    }
  });
  exports('projectdetailfile', {})
});